package com.family.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
public class User {//@TableName("tbl_user"),可以省略这个配置了，因为在yml文件里配了tbl_
    //设置主键生成策略
//    @TableId(type = IdType.ASSIGN_ID)
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    @TableField(value = "pwd",select = false)
    private String password;
    private Integer age;
    private String tel;
    @TableField(exist = false)
    private Integer online;
    //逻辑删除字段，标记当前记录是否被删除
    @TableLogic(value = "0" ,delval = "1")
    private Integer deleted;
    @Version
    private Integer version;
}















